import { createRouter, createWebHashHistory } from "vue-router";
import PageRouter from "./page/index.js";
import ViewsRouter from "./views/index.js";
import AvueRouter from "./avue-router.cjs";
import store from "@/store/index.js";
//创建路由
const router = createRouter({
  history: createWebHashHistory(),
  routes: [...PageRouter, ...ViewsRouter],
});
AvueRouter.install({
  router: router,
  store: store,
});
router.$quickRouter.formatRoutes(store.getters.menu, true);
export default router;
